import json

def msg(data):
    print(json.dumps({"type":"message","data":data}))
def res(data):
    print(json.dumps({"type":"resault","data":data}))
def err(data):
    print(json.dumps({"type":"error","data":data}))